<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
    	<ui:composition template="./templates/framework.xhtml">
			<ui:define name="content">
				<ui:include src="./templates/header.xhtml">
					<ui:param name="text" value="#{i18n['login.lostQuestion']}" />
				</ui:include>
				<h:form id="passwordResetForm">
					<div>
						<h:outputLabel for="username" value="#{i18n['generic.email']}" />
						<h:inputText id="username" value="#{resetPasswordBean.username}" required="true" requiredMessage="#{i18n['generic.valueRequired']}" autocomplete="off" validator="#{resetPasswordBean.validateUsername}" />
						<span class="error"><h:message for="username" /></span>
					</div>
					<div class="buttons">
						<h:commandButton type="submit" value="#{i18n['resetPassword.request']}" action="#{resetPasswordBean.apply}" />
						<input type="button" value="#{i18n['generic.cancel']}" onclick="location.href='login.xhtml'" />
					</div>
				</h:form>
			</ui:define>
		</ui:composition>
    </h:body>
</html>